﻿using DataScripter.Scripting;
using DataScripter.Scripting.ScriptDefinitions;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DataScripter.UnitTests.EngineTests
{
    [TestClass]
    public class WhenEngineIsConstructed
    {
        private readonly Engine _engine;

        public WhenEngineIsConstructed()
        {
            _engine = new Engine();
            IScriptDefinition scriptDefinition = new ScriptDefinition("", _engine);
            _engine.RegisterType(scriptDefinition);


        }

        [TestMethod]
        public void ThereShouldBeNoTablesToScript()
        {
            Assert.AreEqual(0, _engine.Resolve<IScriptDefinition>().ScriptRequests.Count);
        }
    }
}
